package software.agileCourse2013.KillerGame.data.dataobject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Case entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "test", catalog = "kill_game")
public class Case implements java.io.Serializable {
	// Fields

		private Integer id;
		private String name;
		
	// Constructors

	/** default constructor */
	public Case() {
	}

	/** minimal constructor */
	public Case(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public Case(Integer id, String name) {
		this.id = id;
		this.name = name;
	}
	// Property accessors
		@Id
		@Column(name = "id", unique = true, nullable = false)
		public Integer getId() {
			return this.id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		@Column(name = "name", length = 16)
		public String getName() {
			return this.name;
		}

		public void setName(String name) {
			this.name = name;
		}

}
